package com.zhouke.certificate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 周科
 * @since 2022-07-24
 */
@Getter
@Setter
  @TableName("t_comment")
public class Comment implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      private String content;

      private Integer userId;

      private LocalDateTime time;

      private Integer pid;


      private Integer originId;

      private Integer articleId;

      @TableField(exist = false)
      private String realName;
      @TableField(exist = false)
      private String avatarUrl;

      //多级评论，每楼
      @TableField(exist = false)
      private List<Comment> children;

      @TableField(exist = false)
      private String pName;
}
